package com.xauto.pioneer.appuser.util;

/**
 * Created by Ellis.Li on 2017/5/24.
 */

public class MapDistanceLevelUtil {
    private static final int[] SCALE = { 50, 100, 200, 500, 1000, 2000, 5000, 10000, 20000,25000,50000,100000,200000,500000,1000000,200000};
    /** Level:3~18 */
    private static final int[] LEVEL = {18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3};

    public static String getDistanceForMapLevel(int level) {
        int distance = 100;
        for (int i = 0; i < LEVEL.length; i++) {
            if(level == LEVEL[i]) {
                distance = SCALE[i];
            }
        }
        return String.valueOf(distance);
    }
}
